projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9f91bc
)
a11y: Avoid a warning
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 5 May 2014 22:16:55 +0000
(18:16 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 5 May 2014 23:46:04 +0000
(19:46 -0400)
The listbox row accessible code was giving warnings when
parent is NULL, at destruction time.
gtk/a11y/gtklistboxrowaccessible.c
patch
|
blob
|
history
diff --git
a/gtk/a11y/gtklistboxrowaccessible.c
b/gtk/a11y/gtklistboxrowaccessible.c
index d6812dfaaa7a8f0e0091960fae49d367e37cff9f..13831ae9be277ad92346fa96737383292b1957d9 100644
(file)
--- a/
gtk/a11y/gtklistboxrowaccessible.c
+++ b/
gtk/a11y/gtklistboxrowaccessible.c
@@
-50,7
+50,8
@@
gtk_list_box_row_accessible_ref_state_set (AtkObject *obj)
if (widget != NULL)
{
parent = gtk_widget_get_parent (widget);
- if (gtk_list_box_get_selection_mode (GTK_LIST_BOX (parent)) != GTK_SELECTION_NONE)
+ if (parent != NULL &&
+ gtk_list_box_get_selection_mode (GTK_LIST_BOX (parent)) != GTK_SELECTION_NONE)
atk_state_set_add_state (state_set, ATK_STATE_SELECTABLE);
if (gtk_list_box_row_is_selected (GTK_LIST_BOX_ROW (widget)))